/**
 * Created with JetBrains WebStorm.
 * User: rogerio
 * Date: 30/09/13
 * Time: 16:49
 * To change this template use File | Settings | File Templates.
 */

var aplicativo = angular.module('luvminder',[]);


var db = window.openDatabase('luvminder','1','luvminder','10000000');

/*
function populateDB(tx) {
    //tx.executeSql('DROP TABLE IF EXISTS DEMO');
    tx.executeSql('CREATE TABLE IF NOT EXISTS users (id unique, email, password)');
    tx.executeSql('INSERT INTO users (id, email,password) VALUES (1, "rogerio@qualitare.com","123")');
    tx.executeSql('CREATE TABLE IF NOT EXISTS lembretes (id unique, user, titulo, tipo, data )');
    tx.executeSql('INSERT INTO lembretes (id, user, titulo, tipo, data ) VALUES (1,1,"Aniversário de Namoro","Namoro","2007-03-31" )');
    //tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
}

function errorCB(err) {
    alert("Error processing SQL: "+err);
}

function successCB() {
    alert("success!");
}


db.transaction(populateDB, errorCB, successCB);
            */

/*openDatabase(database_name, database_version, database_displayname, database_size);*/
//var db = window.openDatabase("luvminder", "1.0", "luvminder", 1000000);



/*
aplicativo.config(function ($routeProvider) {
$routeProvider
.when('/',
{
   controller: 'HomeController'
 //  templateUrl: 'app/partials/home.html'
})
.otherwise({ redirectTo: '/' });
}); */